Skip to content

feat(delivery): a team conversation swaps a usage-limited seat to a free favorite - #190

Merged
polymaniadeveloper-hub merged 13 commits into
masterfrom
feat/limited-seat-swap
Nov 22, 2026
Merged

polymaniadeveloper-hub merged 13 commits into
masterfrom
feat/limited-seat-swap

Conversation

@polymaniadeveloper-hub

@polymaniadeveloper-hub polymaniadeveloper-hub commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

The problem

When a model in a team conversation reaches its usage limit, the seat's turn simply fails, and a limited orchestrator stops until its window resets. This is the plain-chat half of board revamp slice 4: a conversation setting for what a limited seat does, and the swap behind it.

The setting and its scope

When a seat is limited is a thread-level setting with three options: Swap automatically (the default), Ask me, Leave it out.

  • It is a dropdown in the orchestrator lineup footer, beside Critique round and Participants' access, on the same Select.
  • It is saved on the conversation's lineup (DeliveryOrchestrationConfig.limitedSeat), which the server reads at the start of each turn, so it applies from the next message. Absent means swap automatically.
  • A new conversation starts from the team profile's whenSeatLimited when the engine serves one (see gaps).
  • A model a person chose for a seat by hand is marked (picked) and is never swapped without asking, whatever the setting; its notice still appears.
  • Board-owned threads: the control is hidden, not shown inert. A board task's conversation follows its team's own setting in the engine, so a dead control with a sentence beside it would only add something to read. The server also leaves such a thread alone (isServerOwnedThreadLineage).

The pool rule, as implemented

One pure function, limitedSeatCandidates in packages/shared/src/limitedSeat.ts, used by the server for the swap and for the notices.

A seat is limited when the provider's status shows an exhausted usage window for its model (exhaustedUsageWindow), or when a turn of this conversation failed on it with lastErrorClass: "usage_limit" and a usageLimitResetAt still ahead. Those failed turns are the conversation's own seats and its fork parents.

The substitute is the first Favorite, in the person's order, that is none of:

Skipped as When
unavailable the provider is missing, disabled, not installed, not ready, signed out, cannot run sessions, or is turned off for the project
limited it is itself usage-limited by the same two signals
same-account it is on the limited model's provider instance, on the same harness with the same signed-in email, or in the same provider family
in-use another seat of the conversation, or its lead, already runs that model
not-independent for a QA seat, it is a builder seat's model, on any account

Nothing outside Favorites is ever picked. With none free the result is a visible notice and the seat waits.

What each option does

  • Swap automatically. A limited seat starts its turn in its new child thread on the substitute. A note on the turn says which model stands in and why, and the seat's record carries teamChat.substituteFor. A limited lead is handed on: see below.
  • Ask me (and any seat with a hand-picked model). The seat sits the message out with a notice that names the first free favorite and has one button. Pressing it records the substitute the person agreed to on the lineup, and the seat uses it from the next message while its own model stays limited. For the lead, pressing it performs the hand-off.
  • Leave it out. The seat sits the message out with a notice, as an unavailable provider's seat already did. The lead keeps today's behaviour.

One swap a turn, never a loop: the critique round keeps the stand-in chosen for the contribution round, or the seat sits out if that one is limited too. A mid-turn limit fails the turn as today.

The lead hand-off. leadHandoffCommands (in apps/server/src/delivery/LimitedSeatSwap.ts) issues, in order: the old thread's limit recovery is disarmed (autoResume: false), the thread is forked from the failed run, and the fork's first turn starts on the substitute with "Continue where you left off.". The fork is bound to the same team and carries the lineup. The old thread stays readable and links to the new one. Every id follows from the failed run, so a double click, or the worker and a click together, make one thread. Under Swap automatically a worker does this as soon as the turn fails.

Favorites order

Favorites could not be reordered across providers. Settings, Providers now has a Favorites order list (drag, or the step buttons), on the pattern of the microphone order list. It sends only an order (setModelFavoriteOrder), so a favorite another client starred meanwhile is kept and a removed one is not revived. No new page and no new catalog.

T3 pieces reused

  • ModelFavorites: the pool and its order; the new list only reorders it.
  • The lineup footer Select: the dropdown is a third instance of the one Critique round and Participants' access use.
  • The provider Fix button (feat(web): a Fix button on provider problems opens a thread about it #185): the swap button follows it: size="xs" variant="outline", off while it works, hidden without the operate scope, a toast on failure.
  • UsageLimitRecoveryBanner / the composer banner stack: the notices are ComposerBannerStackItems placed directly after the usage limit banner. On mobile the card sits under UsageLimitRecoveryCard and borrows its layout.
  • ThreadForkService: the hand-off is an ordinary thread.fork from the failed run.
  • ContextHandoffService and selectionTransition's create_with_handoff path: a fork whose first turn runs on another provider already gets the portable handoff summary under its token budget; nothing new summarizes.
  • UsageLimitRecoveryWorker: untouched. The hand-off disarms it through the existing thread.metadata.update limitRecovery command, and the test uses its own limitRecoveryCommand to prove no resume follows.
  • NativeTeamChat's seat availability check: the limit decision sits inside the existing preflight, and a seat left out uses the existing skip notice.
  • The team profile: read for the default (whenSeatLimited).
  • Provider status and usage-limit sources: exhaustedUsageWindow, isProviderAvailable, resolveProjectProviderInstanceEnabled, and the thread shell's lastErrorClass and usageLimitResetAt.
  • MicrophoneOrderList: the pattern for the Favorites order list.

Nothing fitted for provider family across harnesses: the web's modelFamily only picks logos, so modelAccountFamily in shared is new.

What was verified, and how

Targeted tests and typecheck only, per the brief.

  • Pool rule (packages/shared/src/limitedSeat.test.ts, 11 tests): each exclusion on its own row, the order, none free, both limit signals.
  • Seat swap (NativeTeamChat.test.ts, 8 new): the swap and its note, one per turn (stand-in limited before critique; stand-in kept while free), none free, manual pick stays, Ask me and the agreed substitute, the setting read each turn and its default, board-owned left alone.
  • Lead hand-off (LimitedSeatSwap.test.ts, 9): order of the hand-off, the recovery disarm (asserted with the recovery worker's own limitRecoveryCommand), one thread for repeated swaps, none free, a non-favorite refused, the unbound conversation, the seat swap, and the two ungoverned cases.
  • Against the real orchestrator (runtimeLayer.test.ts, 1 new): a thread failed on a usage limit; the hand-off commands dispatched twice; the result is one forked thread with fork lineage from the failed run and one run on the other provider instance, and the old thread no longer resumes.
  • Settings (serverSettings.test.ts, 1 new): reorder without dropping or reviving a favorite.
  • Web (orchestratorChat.test.ts 3 new; OrchestratorLineup.browser.test.tsx 1 new; LimitedSeatNotices.browser.test.tsx 3; limitedSeatNotices.test.ts 4): the default and the profile default, the footer dropdown saving and hidden on a board task, the notice naming the favorite, one command for two presses, the no-free notice, the hand-off link.
  • node scripts/i18n-check.ts: catalogs match in web, mobile and desktop.
  • vp run check:changed (it ran the wide set, because two package manifests changed): format, lint, knip, GraphQL, typecheck of 43 packages and the React compiler check pass. Tests: 752 of 755 passed. The three that did not are timeouts, none in code this PR adds:
    • apps/web/src/state/delivery.test.ts, two cases, timed out at their module load during the wide run and pass when the file runs alone (41 of 41).
    • ChatView.browser.test.tsx "a shortcut conditioned on rightPanelOpen sees the thread's open right panel" fails when its whole file runs and passes alone. It fails the same way on untouched origin/master (360306b), checked in a temporary worktree.

Not verified:

  • No run in a real client. This was built as a sub-agent, which does not start dev servers; the integrated pass on web and mobile is still owed. That includes the look of the dropdown, the notices and the Favorites list, so there are no before and after images here.
  • No real provider reached a real limit. The limit signal, the fork onto another provider and its handoff summary were exercised only through tests and the existing fork path; the summary's content on a real hand-off was not read.
  • The worker reacts to the failing run's events. A server that restarts between the failure and the hand-off does not hand on by itself; the notice then offers the swap as one click.
  • The translations are machine-made and were not reviewed by a speaker.

Capability gaps

  • No account identity across providers. T3 knows a provider instance, its harness and sometimes the signed-in email. It does not know that two harnesses bill one account. "Same account or provider family" is therefore the instance, the email on one harness, and a family read from the model's name (Claude, GPT, Gemini, Grok, Kimi, DeepSeek, GLM), else the vendor prefix, else the harness. It errs toward calling two models the same.
  • The team profile has no such setting yet. The engine does not serve one. T3 reads whenSeatLimited (swap, ask, skip) from the team it is given and ignores anything else, so the default is Swap automatically until the engine half adds the field. The field name is this PR's guess and is a one-line change if the engine chooses another.
  • QA and build seats are told apart by the team's stages, carried on the lineup as duty. A conversation with no team has no QA seat, so the QA rule does not apply there.
  • A hand-picked lead. The lead's model is always a person's choice, so the manual-pick rule is not applied to the lead; the conversation's setting alone decides.
  • Mobile names models by their slug in the notice, where the web uses the catalog's display name.

Deferred

  • To the engine half: seat attestations, hand-offs between stages, the model pick by strength (slice 4b), the lead-pick route, account limit records, and the team setting itself.
  • To the board half: everything on a board-owned thread, including the lead swap that moves boardThread. This PR does not touch delivery/BoardTaskThreads*, boardThread*, taskConversation or the archive door, and is based on master, not on feat: a started board task gets its own conversation, bound to the engine's link #189.

Built by Claude Fable 5.2 in Claude Code.

🤖 Generated with Claude Code


QA: independent pass, 2026-11-22 (head a777e75)

Independent QA on a separate model from the builder. No product code changed, nothing pushed or merged. Run in a worktree at the head with one web dev server (seeded sandbox .t3, delivery turned on and pointed at a dead engine URL so no real engine was contacted), then the PR's test files one at a time with the server stopped. The Mac's swap was near full the whole time; the server logged event-loop stalls of up to 20s but nothing crashed.

How the limits were reached. No seeding was needed. The sandbox's Codex account really is at its weekly limit (resets 2026-11-23 02:00 UTC), so a Codex seat is limited through the provider's own usage window, and a Codex lead's run really fails with a usage limit. That let me exercise the automatic lead hand-off from a real failing run, not only through the button. Substitutes were a local "Replay (dev)" provider (free) plus Claude Haiku 5.5 for the lead and one seat. Only Codex and Claude can be team seats in this sandbox, so all conversations are teamless (no engine, so no teams).

Verdict: pass with findings, 0 blocking

Results by plan item

# Check Result
1 Control in the lineup footer, three options, Swap automatically by default; persists across reload Pass. Shown in the new-conversation setup and in a started conversation's lineup panel. "Ask me" saved as limitedSeat: "ask" on the lineup and survived a reload. Ordinary chat: no control or notice seen, but only checked before delivery was on. Board task conversation: not reachable without an engine (browser test only).
2 Ask me, lead Pass, from a real failing Codex lead run. Notice: "GPT-6-Astra has reached its usage limit / Showcase is free. Swapping continues this conversation in a new linked thread with a summary. / Swap to Showcase". Three fast clicks made exactly one thread limited-lead:run:thread:7bf8e41d...:ordinal:1 on showcase with one "Continue where you left off." message; the client opened it; the old thread's limitRecovery.autoResume is false.
2b Swap automatically, lead (automatic hand-off) Pass, from a real failing run (not seeded). The worker forked thread daadbcad... into limited-lead:...:ordinal:1: "Forked from conversation", context handoff "6 Astra to Showcase", first turn ran on Showcase, the lineup came along, the old thread shows "Continued on Showcase" with Open thread and its recovery is disarmed. See finding 2 for a wrong model name on first render.
3 Ask me, seat Pass. custom-1 (Codex GPT-6-Astra) sat out with the notice "custom-1: GPT-6-Astra has reached its usage limit / Showcase is free... / Swap to Showcase". After Swap the lineup carries substitute: devReplay/showcase (one write for a fast double-click), the notice reads "custom-1 runs on Showcase", and the next message ran custom-1 on showcase in both rounds with the note "custom-1 runs on showcase this turn: gpt-6-astra has reached its usage limit until ...". The seat record carries teamChat.substituteFor (checked in the projection).
4 Swap automatically, seat Not verifiable live. In a teamless conversation every added participant counts as hand-picked (as designed), so seats always ask; an automatic seat swap needs a team from the engine. Covered only by NativeTeamChat.test.ts. The order half was checked live through the offer: after moving "Plan and reads" above "Showcase" in Settings, the seat notices offered "Plan and reads".
5 Leave it out Pass. "custom-1: gpt-6-astra has reached its usage limit until ... Left out of this message.", applied from the next message.
6 Exclusions Pass for what could be built: same account (GPT-6-Luna, first favorite, skipped for a Codex seat), in use (after the lead moved to Showcase, seats were offered Multi turn instead), hand-picked never swapped without asking (seats asked under Swap automatically). No-free: with Replay disabled, "custom-1: GPT-6-Astra has reached its usage limit / No favorite model is free, so custom-1 waits. Resets tomorrow at 2:00 AM", no button. QA-seat exclusion not reachable (no team stages).
7 Favorites order Pass. Settings, Providers, "Favorite models / Favorites order": up/down buttons and drag both reorder; the order is saved to settings and survives a reload; the end buttons are disabled correctly.
8 Mobile Not run (memory).
9 PR test files All pass, each run alone: limitedSeat.test.ts 11/11, limitedSeatNotices.test.ts 4/4, orchestratorChat.test.ts 14/14, LimitedSeatSwap.test.ts 9/9, NativeTeamChat.test.ts 34/34, LimitedSeatNotices.browser.test.tsx 3/3, OrchestratorLineup.browser.test.tsx 8/8. Also runtimeLayer.test.ts -t "hands a limited lead on" 1/1.

Findings, most severe first (none blocking)

  1. The notices do not refresh when the setting, Favorites or provider state change. The limitedSeats query's refresh trigger is only the lead thread's latest run (packages/client-runtime/src/state/delivery.ts), and nothing else invalidates it. Repro: in a conversation showing "Swap to Showcase" for a seat, change "When a seat is limited" to Leave it out; after 7s the Swap button is still offered (the lineup file already says skip); it disappears only on reload. The reverse, Leave it out to Ask me, shows no notice until reload or the next message, so the person sends, the seat sits out, and only then sees the button. Same after reordering Favorites or disabling a provider: I reloaded each time to see the new offer. Fix idea: refresh the query on lineup change and on settings or provider status change.
  2. After an automatic lead hand-off the old thread first says "Continued on GPT-6-Astra", the limited model itself. Repro: Swap automatically, lead on a limited model, send; the old thread's notice reads "Continued on GPT-6-Astra"; after a reload it reads "Continued on Showcase". status reports continued.modelSelection, which the fork inherits from its source until its first turn updates it, and the client does not read again after that. Self-corrects on reload or the next run, but names the wrong model in the very notice meant to explain the swap.
  3. A favorite that cannot be a team seat is still picked as a substitute. The pool takes every favorite whose provider is available; the participant and lead pickers only offer delivery harnesses (DELIVERY_HARNESS_BY_DRIVER). Here Replay (dev), an acpRegistry provider, was offered and ran both a seat and a handed-on lead. It worked natively, so this is a consistency question: either the pool should share the pickers' filter, or the pickers are stricter than they need to be. Owner's call.
  4. The handed-on old thread still offers "Resume at reset" beside "Continued on". The hand-off disarms the recovery (verified), but the existing usage-limit banner still offers to re-arm it. Pressing it would resume the old thread at reset while the linked thread carries on, so the same work could run twice. Consider hiding the resume action once a hand-off exists. Not pressed in this pass.
  5. Nits.
    • The handed-on old thread keeps its seat Swap buttons, which only change a lineup no longer in use.
    • In the new-conversation setup popover, the closed "When a seat is limited" trigger is clipped at the panel's right edge (only its icon shows).
    • The timeline notes use slugs and raw ISO times ("gpt-6-astra ... until 2026-11-23T02:00:28.000Z", "showcase is free"), where the banners use display names and a formatted reset.
    • After a seat swap the lead said "I can't tell which model actually ran that seat", so the lead's own context could say plainly which model stood in.

Could not verify

  • An automatic seat swap for a non-hand-picked seat, and the QA-seat "not-independent" rule (both need an engine team); covered only by the PR's tests.
  • A board task's conversation hiding the control (needs an engine and a board); covered by OrchestratorLineup.browser.test.tsx.
  • An ordinary chat with delivery on showing no control (I saw none, but only checked before delivery was turned on).
  • The seat row tooltip's "Substitute for ..." line: the record carries substituteFor, but the rows I could hover after the turn were in the lineage panel, which does not show it.
  • Whether the Swap button visibly disables while it runs (server side, three clicks gave one write or one thread).
  • Mobile, the handoff summary's content, and the translations.

Screenshots

  • Favorites order in Settings, Providers: /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws2fwgx-231ebb15.png
  • Setup popover with the three options: /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws2gdje-eb60f501.png
  • Seat Ask notice: /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws2j2w0-86a577b1.png
  • Seat "runs on Showcase": /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws2m9u7-51683466.png
  • Automatic hand-off, old thread "Continued on Showcase": /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws2t92k-54ed6d17.png
  • Ask me lead notice: /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws2up4q-74cf3a34.png
  • No-free notice: /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws2wh0s-33cfebda.png

QA by Claude Opus 5.5 in Claude Code.


Fix round 1, 2026-11-22 (on top of a777e75)

Three commits, pushed on top of the QA head. Finding numbers are QA's; letters are the fix round's.

Fix QA finding Commit What changed
A 4, the double-work path e3289adb13 Both sides. Server: the orchestrator refuses a thread.metadata.update that would arm a resume for a run that continues in a linked thread ("This conversation continues in a linked thread. Open that thread instead of resuming this one."), records the recovery worker's own arming of such a run as disarmed, and starts no run for a resume that still reaches it. (Corrected in fix round 2: this held only for the automatic resume at reset. A manual resume from the composer still started a second run on the old thread; see fix round 2.) Clients: the web recovery banner and the mobile recovery card offer no Resume and no Snooze once the continued thread exists. Detection is the hand-off's own: the thread limited-lead:<runId> (limitedLeadHandoffThreadId, moved to @t3tools/shared/limitedSeat so the server and both clients share it). No new state field. A deleted continued thread does not block the old thread's resume, which is then the way on.
B 1, notices do not refresh e3289adb13 The limited-seats read's refresh trigger now also follows the conversation's lineup with its setting, Favorites and project overrides, each provider's status (enabled, installed, ready, signed in, a usage window reaching or leaving its limit), and the continued thread appearing or starting. Wired on web and mobile from the atoms T3 already has (threadBinding, serverEnvironment.settingsValueAtom, providersValueAtom). A usage window merely filling does not refetch.
C 2, "Continued on" the limited model e3289adb13 The status reads the substitute from the continued thread's first run, which is what the hand-off dispatched, not from the thread's model, which is the fork source's until that turn lands. Between the fork and the turn it names the first free favorite, and the client reads again when the continued thread starts. Found on the way: a retried hand-off whose first turn had not landed would have sent it on the limited model; it now picks a free favorite again.
D nit, clipped trigger 7bd2568dd4 Test only. I could not reproduce a cut-off trigger: rendered at the popover's panel width (315px, and 300px for a classic scrollbar), all three triggers sit inside the panel with their values in full, wrapping onto further rows. In QA's own screenshot the dropdown is open and its popup covers the trigger, which may be what was seen. No layout change made.
E nits e3289adb13, 56a57e0417 See below.

Nits

  • Done: leftover seat Swap buttons on the handed-on thread (e3289adb13). The old thread runs no more turns, so once its lead is handed on its status carries only the "Continued on" notice. On the new thread the seats are still read against their own limits (and the parent's), so a seat that is limited there keeps its offer.
  • Done: raw model ids and timestamps in the turn notes (56a57e0417). Notes use the provider's display names. The reset is written as a short date and time with its zone, in the server's zone: the server cannot know each reader's clock or time-format setting, so it names the zone instead of guessing.
  • Done: the lead could not tell which model ran a swapped seat (56a57e0417). A seat's contribution header now reads <instance>/<model>, standing in for <limited model>, which reached its usage limit, where the lead and the critique round read it.

Ruling, no change (F)

QA finding 3: a favorite that cannot be picked as a team seat (the Replay dev provider) can still become a substitute. The owner ruled that the swap pool is the person's Favorites and nothing else, so the pool is unchanged.

Coverage for what QA could not verify live (G)

No new tests were needed; each is already covered:

  • A board task's conversation hides the control: OrchestratorLineup.browser.test.tsx (boardOwned), and the server does not govern it (LimitedSeatSwap.test.ts, "does not govern a board task's conversation").
  • An ordinary chat shows nothing while delivery is on: the server answers policy: null for it (LimitedSeatSwap.test.ts, "does not govern an ordinary chat") and the client shows nothing for that answer (limitedSeatNotices.test.ts). The control itself lives only in the lineup panel, which an ordinary chat does not have.
  • The automatic swap of a seat that was not hand-picked: NativeTeamChat.test.ts (the default-setting swap test, now also checking the stand-in attribution).
  • The QA-seat rule: limitedSeat.test.ts, "keeps a QA seat off the builder's model, on any account".

Tests added

  • Server: runtimeLayer.test.ts (re-arm refused, snooze still allowed, a resume starts no run; the worker's arming recorded disarmed), LimitedSeatSwap.test.ts (substitute named from the dispatched turn, and while the fork has no turn; old thread drops seat offers).
  • Client runtime: state/delivery.test.ts (one case per refresh trigger, a real refetch on lineup, Favorites, provider and hand-off changes, and the hand-off detection).
  • Web: UsageLimitRecoveryBanner.test.tsx (no actions once handed on), OrchestratorLineup.browser.test.tsx (footer fit).
  • Mobile: UsageLimitRecoveryCard.test.tsx (no Resume or Snooze once handed on).

Checks run

Targeted only, one batch at a time, no dev server. Every test file importing a changed module:

  • Server, 68 files: 66 pass, 2255 tests pass. 3 tests in 2 files fail with TypeError: statement.stat is not a function (Orchestrator.control-reads.test.ts twice, ProjectionStore.test.ts once): a node:sqlite call this machine's Node (v24.21.0) does not have, in tests this round did not touch. Not checked on another Node.
  • Web, 37 files (unit and browser): 36 pass, 389 tests pass. 1 fails: ChatView.browser.test.tsx, "a shortcut conditioned on rightPanelOpen sees the thread's open right panel", times out when the whole file runs. It fails the same way with the QA head's ChatView.tsx and state/delivery.ts put back, and passes alone with or without this round's change, so it is not from this round.
  • Client runtime 3 files (12 tests), shared limitedSeat.test.ts (11), mobile UsageLimitRecoveryCard.test.tsx (8): all pass.
  • Typecheck: shared, client-runtime, server, web and mobile clean. Format, lint and knip clean on the commit hooks.

Not verified

  • Nothing was run live in a client this round (no dev server started); the fixes are proven by tests only.
  • Mobile was not run on a device or simulator.
  • The new English strings (the server's refusal message and the turn-note wording) were not run through translation.

Fix round by Claude Fable 5.2 in Claude Code.


QA spot check of fix round 1, 2026-11-22 (head 56a57e0)

Independent QA, a separate model from the builder. This covers only what the fix round changed; the earlier QA pass stands for the rest. No product code changed, nothing pushed or merged. Same setup as before: worktree at the head, one web dev server on the seeded sandbox, delivery on and pointed at a dead engine URL, no engine. Codex was still at its weekly limit (resets 2026-11-23 02:00 UTC), so it was the real limited provider again. Substitutes were the free Replay (dev) models.

Verdict: fail, 1 blocking

Results

# Check Result
A Old thread after a hand-off: no Resume, no Snooze, only the reset text Pass for the banner. It reads "Usage limit reached / Resets tomorrow at 2:01 AM" plus "Continued on Showcase / Open thread", with no Resume at reset and no Snooze (both old threads, daadbcad and 7bf8e41d).
A Re-arm by any other route Fail, blocking (finding 1). The composer's send button still reads "Resume thread" on the handed-on thread, and pressing it started a second run there. The old thread went from 1 run to 2.
A Delete the linked thread, old thread resumes again Pass. After I deleted the linked thread for the latest run, the old thread offered "Resume at reset" and "Snooze until reset" again, plus its seat Swap buttons.
B Setting to Leave it out Pass. Both Swap buttons and notices were gone about 250 ms after choosing it, with no reload.
B Setting back to Ask me Pass. "Swap to Plan and reads" was back on both seats about 300 ms later.
B Reorder Favorites Pass. In a second tab (so the conversation never remounted) I moved Multi turn above Plan and reads; the conversation's offers read "Swap to Multi turn" on the first check, with no new run. Order restored afterwards.
B Provider change Pass. With Replay (dev) disabled the offers switched to "Swap to Claude Haiku 5.5"; re-enabled, they went back to "Plan and reads". No reload.
C Automatic hand-off names the real substitute at once Pass. The second hand-off caused by finding 1 showed "Continued on Plan and reads" straight away, and its run did run on devReplay/todo-list (Plan and reads). No reload.
D Setup popover footer triggers Not clipped; my earlier finding was wrong. With nothing open, all three triggers sit inside the 362 px panel ("When a seat is limited" spans 489 to 650 px against a right edge of 679 px) and read "First message only", "Read-only", "Swap automatically" in full. My earlier screenshot shows the open listbox covering the trigger, as the builder said. The second row sits below the panel's scroll fold until you scroll.
E Old thread shows no seat Swap buttons Pass on both handed-on threads (they come back only once the linked thread is gone, as above).
E Turn notes with model names Pass. New turns read "custom-1: GPT-6-Astra has reached its usage limit until Nov 23, 2:00 AM GMT. Plan and reads is free: ..." and "custom-1 runs on Plan and reads this turn: GPT-6-Astra has reached its usage limit until Nov 23, 2:00 AM GMT." Notes written before the fix keep the old slug wording, which is expected.

Findings

  1. Blocking: the composer's "Resume thread" still resumes a handed-on run, so the same work runs twice. On the old thread daadbcad (handed on to limited-lead:run:thread:daadbcad-...:ordinal:1), with an empty draft the send button is labelled "Resume thread" (ComposerPrimaryActions.tsx:390, ChatComposer.tsx:1336; Enter does the same). One press dispatched a turn with manualContinuationOfRunId = run 1, and the server accepted it: run ...daadbcad...:ordinal:2 started on Codex GPT-6-Astra, hit the limit again, and the automatic hand-off fired again into a second linked thread, limited-lead:run:thread:daadbcad-...:ordinal:2, which completed on Plan and reads. So the old thread no longer has exactly its original run, and the conversation was continued twice in two linked threads. Cause: runHandedOn guards the recovery update and usageLimitContinuationOfRunId but not the manualContinuationOfRunId check (apps/server/src/orchestration-v2/Orchestrator.ts:7255). The client gates only the banner (handedOn in UsageLimitRecoveryBanner), not the composer's canResume. Fix idea: refuse a manual continuation of a handed-on run with the same message, and drop the composer's resume while limitedLeadHandedOn is true. The same "Resume thread" button is also on the other old thread, 7bf8e41d (not pressed). Here the provider was still limited, so the duplicate ended in a second hand-off; with a provider that had recovered, the old thread would have done the work itself alongside the linked thread.
  2. Not blocking, from the original PR rather than this round: the seat notice offers a model another seat is already running as a substitute, then the turn refuses it. With custom-1 swapped onto Plan and reads, the notice for custom-2 still offered "Swap to Plan and reads" (also after a reload). I pressed it: the banner then said "custom-2 runs on Plan and reads", but the next turn left custom-2 out with "custom-2: GPT-6-Luna has reached its usage limit until Nov 23, 2:00 AM GMT. Multi turn is free: ...". So the banner says a seat runs when it did not. Cause: the notice and swap paths call limitedSeatPool without runsOn (apps/server/src/delivery/LimitedSeatSwap.ts:238 and :362), so a substitute already covering another seat is not counted as in use; the turn path passes it (NativeTeamChat.ts:350). I missed this in the first pass.

Could not verify

  • A re-arm through a hand-made thread.metadata.update with limitRecovery.autoResume: true: there is no CLI for it and I did not hand-craft a WebSocket command. Covered by the round's runtimeLayer.test.ts only. The banner offers no route to it.
  • That a resume that reaches the old thread through the usage-limit continuation path starts no run (usageLimitContinuationOfRunId): needs the reset to pass; tests only.
  • The "standing in for ..." line in the lead's context: it goes into the lead's prompt, which the Replay agent does not echo and the database does not store. Tests only.
  • Mobile (memory). The server-zone reset time was checked only where server and browser share a zone (GMT).
  • Not re-run: the PR's test files (the builder ran them; this was a live spot check only).

Screenshots

  • Old thread, banner with only the reset text, composer "Resume thread" still present: /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws4ub0e-780ad59d.png
  • After pressing it: "Resumed thread", a second limit failure, two linked threads in Lineage, "Continued on Plan and reads": /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws4v9mx-8c6a5047.png
  • Leave it out, notices gone without a reload: /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws4wl4v-c3ce2b62.png
  • Setup popover footer, closed triggers in full: /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws4z4ud-bf6a53ef.png
  • Linked thread deleted, old thread offers Resume at reset and Snooze again: /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws518lw-33bd68ae.png
  • Finding 2, "custom-2 runs on Plan and reads" after a turn that left it out: /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws52qok-2e305307.png

Sandbox state left behind: the extra run on daadbcad, the deleted second linked thread, and three spot-check turns on limited-lead:run:thread:7bf8e41d-...:ordinal:1, whose seats now both carry Plan and reads as their substitute. Favorites order and Replay (dev) were restored.

QA spot check by Claude Opus 5.5 in Claude Code.


Fix round 2, 2026-11-22 (on top of 56a57e0)

Two commits, pushed on top of the spot-check head. QA's blocking finding 1 and its non-blocking finding 2.

Fix QA finding Commit What changed
A, B 1, the composer resumes a handed-on thread (blocking) 37dfbec076 Server: while a thread's latest limited run continues in a linked thread, the thread is read-only, as an archived one is. The orchestrator refuses every message.dispatch to it (a typed message, the composer's Resume thread, the CLI, MCP tools, a steer, a scheduled task, a queued continuation from a metadata update) with OrchestratorThreadHandedOnError: "This conversation continues in a linked thread. Open that thread instead of resuming this one." It is the sibling of #187's OrchestratorThreadArchivedError, sits in dispatchMessage where the thread's runs are already loaded, and is in ThreadMessageIntake's not-accepted list, so a refused send keeps its draft and attachments. The server's own follow-ups (a usage-limit or restart continuation, a steer follow-up, a notification, an idle compaction) are not refused: each settles quietly on such a thread and starts no run. The key is runHandedOn on the thread's latest executed run when it failed, so deleting the linked thread reopens the old one. Cost on the ordinary path: nothing unless the latest run failed, then one lookup by id. Web: the composer of a handed-on thread shows the notice "This conversation continues in a linked thread" with Open thread, its send is disabled with that reason, and canResume is false, so the button no longer reads "Resume thread" and Enter on an empty draft resumes nothing. Mobile: the same notice card with Open thread above the composer, the send blocked with that reason, and no Resume action.
C 2, a seat offered the model another seat stands in on bd56252fff One helper, agreedStandIn in packages/shared/src/limitedSeat.ts: what a limited seat stands in on by agreement (its agreed substitute, where the seat asks before it swaps). The status read and the swap now pass it to limitedSeatPool as runsOn, so a model another limited seat already agreed to is in-use: it is never offered, and a swap to it is refused with " is no longer free. Choose again from the notice." The turn reads other seats through the same helper, so a seat earlier in the roster is not offered a later seat's agreed substitute either; before, the turn only counted seats it had already started.

Earlier claims this corrects

  • Fix round 1, row A, said the server "starts no run for a resume that still reaches it". That was true only of the automatic resume at reset. A manual continuation was accepted and did the work a second time, as QA found. Marked in place above.
  • Fix round 1 detected a hand-off for the recovery banner only. The composer's resume and send were not gated on either client. They are now.

T3 pieces reused

  • fix: harden board-owned threads after QA (shell trim, routing, seat view, project removal) #187's archived-thread refusal: OrchestratorThreadArchivedError, refuseArchivedThreadMessage and its ThreadMessageIntake entry are the pattern for the server half. The two now share one predicate, isServerFollowUp, for what counts as the server's own follow-up.
  • fix: harden board-owned threads after QA (shell trim, routing, seat view, project removal) #187's ComposerArchivedThread (the banner item and the send-disabled reason): ComposerHandedOnThread is its sibling, placed in the same slot of the composer banner stack and of sendDisabledReason.
  • The limited-seat notice's Open thread button (Button size="xs" variant="outline", the existing "Open thread" string and the same navigation) for the action; on mobile the limited-seat card's NoticeAction and its stack push.
  • limitedLeadHandedOn from fix round 1 for detection on both clients. No new state field and no new RPC.

Tests added

  • Real orchestrator (runtimeLayer.test.ts, the existing hand-on case extended): on the old thread a manual resume (manualContinuationOfRunId), a typed message and the send the CLI and tools make are each refused with OrchestratorThreadHandedOnError and the sentence; the thread keeps exactly its original run and its one message; after thread.delete of the linked thread a message is accepted and starts a second run.
  • Web (ChatView.handedOnSend.browser.test.tsx, mirroring ChatView.archivedSend.browser.test.tsx): on a stopped thread that was handed on, the notice is visible, there is no "Resume thread" button, Enter on an empty draft and on a typed draft sends nothing, the send is disabled with the reason, and Open thread opens the linked thread. A stopped thread that was not handed on still shows Resume thread and still sends.
  • Swap (LimitedSeatSwap.test.ts): with two limited seats, once the first agrees to a model the second is no longer offered it, and a swap to it is refused as no longer free and writes nothing.
  • Turn (NativeTeamChat.test.ts): a seat earlier in the roster is not offered the substitute a later seat agreed to, and the later seat runs on it.

Checks run

Targeted only, one batch at a time, no dev server. Every test file importing a changed module:

  • Server, 67 files in four batches, then the two delivery files again after the last test was added: 2196 tests pass, 2 skipped, 2 fail. The 2 failures are Orchestrator.control-reads.test.ts with TypeError: statement.stat is not a function, the same node:sqlite gap on this machine's Node that fix round 1 recorded.
  • Web browser, 12 files: 54 of 55 pass. The 1 failure is ChatView.browser.test.tsx, "a shortcut conditioned on rightPanelOpen sees the thread's open right panel", the timeout already recorded as failing on untouched master.
  • Shared limitedSeat.test.ts (11) and client runtime state/delivery.test.ts, limitedSeatNotices.test.ts (11): all pass.
  • Typecheck: shared, server, web and mobile clean. i18n:check clean. Format, lint and knip clean on the commit hooks.

Not verified

  • Nothing was run live in a client (no dev server started). The fix is proven by tests only; the live press of Resume thread that QA made is still owed a re-check.
  • Mobile has no test for the new card and the blocked send, and was not run on a device or simulator. It typechecks.
  • The CLI case is tested as the command it dispatches, against the real orchestrator. It was not driven through the t3 binary or through ThreadManagementService.sendToThread, which adds nothing between.
  • The quiet settle of the server's own follow-ups has a test only for the usage-limit continuation (from fix round 1). The restart continuation, steer follow-up, notification and idle compaction go through the same early return and were not each exercised. A notification that reaches a handed-on thread is dropped there, as the brief asked; a subagent's delegated result sent to it is refused, as on an archived thread.
  • A message queued on the old thread before its run hit the limit stays queued there. Nothing starts it now, since the resume is refused, but it is not moved to the linked thread.
  • With C, two seats that already share one agreed substitute (the state QA's sandbox was left in) both read as not covered, in the notices and in the turn, until one is swapped again. The swap no longer lets that state arise.
  • On the old thread the "Continued on " notice and the new composer notice can both show, each with an Open thread button, while the limit has not reset. After the reset only the composer notice remains.
  • The new notice's nine translations per client are machine-made and unread by a speaker. Key order in the catalogs moved because gt generate rewrote them.

Fix round 2 by Claude Fable 5.2 in Claude Code.


Fix round 3, 2026-11-22 (on top of 37dfbec)

One commit, b503edd078. The lead's review of fix round 2 found that the message guard covered only message.dispatch.

Fix Commit What changed
A, the queue b503edd078 A queued run starts through startNextQueuedRunOnce, which the message guard never saw. Beside its archived and deleted check it now starts no queued run while the thread's latest executed run is failed and continues in a linked thread. That is the one place every caller passes: queue.resume, queued-run.start, a runtime mode change under a ceiling, recovery at server start, wakes and run-end handlers. The two explicit commands are also refused in their handler with OrchestratorThreadHandedOnError and the same sentence, "This conversation continues in a linked thread. Open that thread instead of resuming this one.", so a CLI or tool caller learns why. Automatic callers settle quietly. Deleting the linked thread gives the queue back. One detection, handedOnTo, now serves the message guard, the queue and the two commands.
B, a delegated result b503edd078 A delegated task's result for a run that was handed on is disposed, as on an archived parent: no wake message, no queued run, no offer to the provider, no error on the delivery. A delivery already under way when the hand-off happens settles quietly at message.dispatch instead of being refused.

What the queue gap really was

Reading the code for the test showed the gap is narrower than the review described, and the guard is still right. While the limited run is the thread's latest executed run, usageLimitHoldsQueue already holds a queued run on the same provider, for the explicit commands and for the automatic callers, before and after the reset (queue.resume answers "Continue the limited thread before resuming its queue."). What was open is a queued run whose provider is not the limited one: nothing held it, so any of those callers started it on the old thread. The test builds exactly that case.

Tests added

  • Real orchestrator, under a runtime mode ceiling (runtimeLayer.test.ts, "the queue of a handed-on thread"): a message is queued behind the limited run, the hand-off happens, and the queued run is one the limit does not hold. queue.resume and queued-run.start are each refused with the error and the sentence; a runtime mode change and resumeQueuedRuns start nothing; the old thread keeps its failed run and its queued run, still queued. After thread.delete of the linked thread, queue.resume starts the queued run. Checked both ways: with the choke-point guard removed the mode change starts the run, and with the handler refusal removed the commands are not refused.
  • Delegated result (RemoteDelegatedTask.test.ts): a task whose parent run failed and was handed on completes with its result recorded, its delivery disposed, no new message, no new run and no offer. Without the fix the delivery is claimed.

Checks run

  • Server, every test file importing Orchestrator.ts, 64 files in one batch capped at four workers: 2033 pass, 2 skipped, 2 fail. The 2 failures are Orchestrator.control-reads.test.ts with TypeError: statement.stat is not a function, the node:sqlite gap on this machine's Node recorded in rounds 1 and 2.
  • Server typecheck clean. Format, lint and knip clean on the commit hook.

Not verified

  • Nothing was run live in a client or through the t3 binary; proven by tests only.
  • Orchestrator.control-reads.test.ts cannot run on this machine, and one of its two cases ("starts, finishes and follows up a task without reading the parent's history") measures the reads of the path B touches. B was written to add none on a live parent run (it looks up the linked thread only when the spawning run failed), but that test did not confirm it here. CI will.
  • In the queue test the queued run is addressed to the other provider by a written event after the hand-off, since a real one starts the moment the limited run fails, before any hand-off exists. How a thread reaches that state in practice (a held start, a restart between failure and hand-off) was not reproduced end to end.
  • B reads only the run that spawned the task. A task spawned by an earlier run of a handed-on thread is not disposed: its wake is queued on the old thread and never starts while the linked thread exists. No test covers that case.
  • A message queued on the old thread before the limit still stays queued there; it is not moved to the linked thread.

Fix round 3 by Claude Fable 5.2 in Claude Code.


QA re-check of fix rounds 2 and 3, 2026-11-22 (head b503edd)

Independent QA, a separate model from the builder. A focused re-check of my blocking finding and of the paths added since; the earlier QA sections stand for the rest. No product code changed, nothing pushed or merged. Same setup: worktree at b503edd078, one web dev server on the seeded sandbox, delivery on and pointed at a dead engine URL, no engine. Codex was still really at its weekly limit (resets 2026-11-23 02:00 UTC), so no seeding was needed. Commands the UI does not expose were sent from the page over the client's own WebSocket (orchestration.dispatchCommand, delivery.swapLimitedSeat), with the same payloads the client builds. The server logged event-loop stalls of up to 18s; nothing crashed.

Verdict: pass with findings, 0 blocking

My blocking finding is fixed: the handed-on thread has no Resume thread, and every route I could reach to start a run there was refused or started nothing.

Results

# Check Result
1 Composer of the handed-on thread 7bf8e41d Pass. It shows "This conversation continues in a linked thread" with Open thread. The send button has no "Resume thread" label: it is disabled, with that sentence as its label. Enter on an empty draft, Enter on a typed draft, and a forced submit (send re-enabled in the DOM, clicked, plus a form submit event) sent nothing. The typed draft was kept. Open thread opened limited-lead:run:thread:7bf8e41d-...:ordinal:1.
1 Other routes on that thread Pass. t3 thread send (the CLI, through the server's t3_thread_send): "Unable to send to thread ...: This conversation continues in a linked thread. Open that thread instead of resuming this one." Over the socket, refused with the same sentence: message.dispatch with manualContinuationOfRunId (the route of my finding), a typed message queued after active, a steer, queue.resume and queued-run.start. A usageLimitContinuationOfRunId dispatch was accepted and a thread.runtime-mode.set succeeded; neither started a run, as designed. Afterwards the thread still had exactly 1 run (failed, Codex) and 1 message.
2 The queue Pass, produced for real. On daadbcad (reopened earlier) I sent message A on Codex and, before it failed, queued B on Codex and C on Replay (Plan and reads), which is the case fix round 3 closed. A failed on the limit and handed on to limited-lead:run:thread:daadbcad-...:ordinal:3 (completed on Replay). B and C stayed queued and started nothing on their own, including after the run-end handlers and a wait. queue.resume, queued-run.start on B and on C were each refused with the sentence. Two runtime mode changes started nothing. The queued rows' Send now was refused with a toast carrying the sentence (finding 1). After deleting the linked thread, the limited-lead notices and the seat Swap buttons came back; queue.resume then answered "Continue the limited thread before resuming its queue." because B (Codex) heads the queue, which is the existing limit hold; queued-run.start on C started it and it completed on the old thread.
3 A seat's result after the hand-off Not verified. I could not arrange a seat still running when the lead hands off. On this thread no delegated seat turns ran, and in the team-chat flow the seats contribute before the lead starts, so a Codex lead fails only after they finish. Covered by the round's RemoteDelegatedTask.test.ts only.
4 The seat notice Pass. Both limited seats were first offered Showcase. After I swapped custom-1 to Showcase ("custom-1 runs on Showcase"), custom-2's notice offered "Swap to Multi turn" instead. A forced delivery.swapLimitedSeat of custom-2 to Showcase was refused: "showcase is no longer free. Choose again from the notice." (finding 2).
5 Regression Pass. Once its linked thread was gone, daadbcad took a typed message from the composer and ran it (run 6, completed). The offer order follows Favorites: Plan and reads is the lead's own model on that thread, so seats were offered Showcase, then Multi turn, the next Favorites in order. I did not reorder Favorites again this round.
6 Tests, server stopped, one at a time Pass. LimitedSeatSwap.test.ts and NativeTeamChat.test.ts: 47 of 47. ChatView.handedOnSend.browser.test.tsx: 2 of 2.

Findings (none blocking)

  1. Nit: a handed-on thread's queued messages still offer Send now, which always fails. On daadbcad while handed on, each queued row showed Send now (and edit and cancel). Pressing it showed "Could not send queued message: This conversation continues in a linked thread. Open that thread instead of resuming this one." and started nothing. That is safe, but the composer hides its resume there, so the queue could hide or disable Send now too.
  2. Nit: the swap refusal names the model by its slug. "showcase is no longer free. Choose again from the notice." The notices and turn notes use the picker name ("Showcase"), as fix round 1 settled.

Could not verify

  • Check 3, as above.
  • Recovery at server start and wakes starting nothing for a handed-on queue: I did not restart the server while the queue was held. Tests only.
  • Mobile: not run (memory).
  • A message dispatched through an MCP tool client: the sandbox server refused my bearer token on /mcp (it needs an MCP client session). The CLI path covers t3_thread_send; t3_queue resume was checked only as the queue.resume command it dispatches.

Screenshots

  • Handed-on thread, notice with Open thread, send disabled, no Resume: /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws7n8uy-3a439be0.png
  • Same thread after Enter and a forced submit, typed draft kept, nothing sent: /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws7np2j-515af93e.png
  • Queued B and C held on the handed-on daadbcad: /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws7u0pi-8aa3ba74.png
  • Send now refused with the sentence (finding 1): /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws7ua6a-ba8f25d7.png
  • Linked thread deleted, C ran on the old thread, Swap buttons back: /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws7w304-d72b3f59.png
  • custom-1 runs on Showcase, custom-2 offered Multi turn: /Users/tevinmuparadzi/.polymania/t3-pm/userdata/browser-artifacts/browser-screenshot-localhost-mws7wzpq-a4fcbde0.png

Sandbox state left behind: on daadbcad, runs 3 to 6 and queued B (Codex, still held), the deleted linked thread for run 3, and custom-1 agreed onto Showcase. A one-off bearer session labelled qa-recheck (2h TTL) was issued on the sandbox server and its token file deleted.

QA re-check by Claude Opus 5.5 in Claude Code.

Tevin2119 and others added 13 commits November 22, 2026 14:57
The orchestrator lineup footer gains "When a seat is limited" beside
Critique round and Participants' access, on the same Select: Swap
automatically (the default), Ask me, Leave it out. It is saved on the
conversation's lineup, so it is read at the start of each turn and applies
from the next message. A new conversation starts from the team profile's
whenSeatLimited when the engine serves one. A board task's conversation
does not show the control: its team's own setting decides there.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Provider settings gain a Favorites order list: the starred models across
providers, first choice first, moved by drag or by the step buttons, on the
pattern of the microphone order list. The order is what a limited seat's
swap follows. Only the order is sent (setModelFavoriteOrder), so a favorite
another client starred meanwhile is kept and a removed one is not revived.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…avorite

NativeTeamChat's seat admission now treats a usage-limited model as
unavailable. The signal is T3's own: the provider status windows, and the
usage_limit failures of the conversation's seats and fork parents. What
happens next is the conversation's setting:

- Swap automatically: the seat's child thread starts on the first Favorite
  that is available, not limited, not on the limited model's account or
  provider family, not run by another seat or the lead, and, for a QA seat,
  not a builder seat's model. A note on the turn says which model stands in
  and why, and the seat's record carries substituteFor.
- Ask me, or a model chosen by hand: the seat sits out with a notice naming
  the free favorite; a substitute the person agreed to is used.
- Leave it out: the seat sits out.

A seat is swapped once a turn: the critique round keeps the stand-in or the
seat sits out. With no favorite free the seat waits with a notice. A board
task's conversation is left to its team's own setting.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…avorite

When a team conversation's lead fails a turn on a usage limit and the
conversation swaps automatically, the server hands the work on: the old
thread's limit-recovery resume is disarmed, the thread is forked from the
failed run through the existing fork path, and the fork's first turn starts
on the first free favorite. A fork onto another provider already carries the
ContextHandoffService summary under its token budget, so nothing new
summarizes. The fork keeps the team binding and the lineup. Every id follows
from the failed run, so a repeat makes one thread.

delivery.limitedSeats reports which seats and lead are limited and what could
stand in; delivery.swapLimitedSeat is the one click, for a seat (it records
the substitute the person agreed to) and for the lead (the hand-off). Both
are refused for a model that is not a free favorite.

An orchestrator test runs the hand-off commands twice against a real failed
usage-limit run.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Beside the usage limit banner, a team conversation now says which of its
seats or its lead has reached a limit and what T3 can do about it. Under
Ask me, or for a model chosen by hand, the notice names the first free
favorite and swaps to it in one click, built like the provider Fix button:
off while it runs, hidden where threads cannot be run, and backed by a
command that is safe to repeat, so a second press makes no second thread.
With no favorite free the notice says the seat or the conversation waits.
A lead that was handed on links to the thread it continues in.

Mobile shows the same notices from the same wording and follows the thread's
setting; the setting itself is chosen on the desktop or web. A seat's card in
the timeline says when a substitute ran in its place.

The notices are read from delivery.limitedSeats and follow the thread's
latest run through the query's refresh trigger. New strings are in every
web and mobile catalog, machine-translated.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…m; document the setting

A run's failure and its usage-limit error are separate events and may land
in either order, so the hand-off worker now reacts to both. The hand-off is
safe to repeat, so the second event changes nothing. The composer guide
gains a paragraph on When a seat is limited and Favorites order.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ces stay current

A limited lead handed on to a linked thread could still be re-armed from the
old thread's recovery banner, so the same work would run in two threads. The
orchestrator now refuses to arm a resume for a run that continues in a linked
thread, records the worker's own arming of one as disarmed, and starts no
resume for it. The web banner and the mobile card offer no resume or snooze
once the continued thread exists.

The limited-seats read now refreshes when the lineup or its setting, Favorites
or a provider's status changes, and when the continued thread appears or
starts, on web and mobile.

After an automatic hand-off the old thread named the limited model, because
the fork carries its source's model until its first turn lands. The status now
names the model the hand-off started. A retried hand-off also no longer sends
its first turn on the limited model, and the old thread drops its seat offers.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…width

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…, and say who stood in

The notes wrote model ids and raw ISO times. They now use the provider's
display names and a readable reset time with its zone. A seat's contribution
also says which model it stood in for, so the lead can attribute it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…in on

The notice and the swap built a seat's pool without what other seats run on, so
a model one seat already stood in on by agreement was offered to a second seat,
the swap was accepted, and the next turn left that seat out. The notice, the
swap and the turn now read another limited seat through one helper,
agreedStandIn, and count its agreed substitute as in use.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…s no message

The composer of a handed-on thread still read Resume thread, and one press ran
the limited run again beside its linked thread. The orchestrator now refuses
every message sent to a thread whose latest limited run continues in a linked
thread, from a person, the CLI or a tool, with one sentence; its own follow-ups
settle quietly there and start nothing. Deleting the linked thread reopens it.
The web and mobile composers show a notice with a way to the linked thread,
disable the send and offer no resume. The notice is translated by the model in
the ten catalogs; no native speaker has read it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…m its queue

A queued run starts through startNextQueuedRunOnce, which the message guard
never saw. It now starts none while the thread's latest limited run continues
in a linked thread, for every caller: queue.resume, queued-run.start, a runtime
mode change, recovery, wakes and run-end handlers. The two explicit commands
are refused with the sentence the message refusal uses.

A delegated task's result for a run that was handed on is disposed, as on an
archived parent: no wake, no run, no error on the delivery.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
# Conflicts:
#	apps/server/src/ws.ts
#	packages/contracts/src/delivery.ts
@polymaniadeveloper-hub
polymaniadeveloper-hub merged commit 3f8cb2d into master Nov 22, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants